package com.example.myapplication.receiver;

import static android.widget.Toast.LENGTH_SHORT;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class MyReceiver extends BroadcastReceiver {
    // 拦截到的意图进行处理
    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context,"意图已检测！",LENGTH_SHORT).show();
    }
}
